package com.hardware.controller;

import com.hardware.entity.IdCard;
import com.hardware.entity.Respond;
import com.hardware.service.JinglunService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 访问硬件接口
 *
 * @作者 韩宗森
 * @创建时间 2024年10月24日 10:27
 */

@Tag(name = "访问硬件接口")
@RestController
@RequestMapping("/hard/jinglun")
public class JinglunController {

    // 精伦读卡器
    @Autowired
    private JinglunService jinglunService;

    // http://127.0.0.1:8080/hard/jinglun
    @Operation(summary = "精伦读卡器-iDR210 身份证信息")
    @GetMapping("/read-idcard")
    public Respond<IdCard> jinglunIdCard() {

        return jinglunService.jinglunIdCard();
    }


}
